<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 相对定位 绝对定位 固定定位 */
        .one {
            width: 200px;
            height: 200px;
            position:fixed;
            background-color: #ff0000;
            left: 1000px;
            top: 100px;
        }

        .two {
            width: 400px;
            height: 400px;
            margin-left: 200px;
            background-color: #00f2ff;
          
        }
    </style>
</head>

<body>
    <div class="one"></div>
    <div class="two"></div>
</body>

</html>